PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFCanvas Class / drawImage Method / drawImage(PDFImage,double,double,double,double) Method
to draw.
The x-coordinate of the upper-left corner of the drawn image.
The y-coordinate of the upper-left corner of the drawn image.
Width of the drawn image.
Height of the drawn image.
In This Topic
    drawImage(PDFImage,double,double,double,double) Method
    In This Topic
    Draws the specified at the specified location and with the specified size.
    If width is zero or negative then width is automatically computed in order to keep the original aspect ratio. If height is zero or negative then height is automatically computed in order to keep the original aspect ratio. If both width and height are negative then the image is scaled automatically to fit the given area and the original aspect ratio is kept.
    Syntax
    public PDFSize drawImage( 
       PDFImage image,
       double x,
       double y,
       double width,
       double height
    )

    Parameters

    image
    to draw.
    x
    The x-coordinate of the upper-left corner of the drawn image.
    y
    The y-coordinate of the upper-left corner of the drawn image.
    width
    Width of the drawn image.
    height
    Height of the drawn image.

    Return Value

    The size of the drawn image.
    See Also